import 'package:flutter/material.dart';
import 'package:setting_test01/dashboard_one_page.dart';
import 'package:setting_test01/dashboard/dashboard_menu_row_two.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';

class DashboardTwoPage extends StatelessWidget {
  const DashboardTwoPage({Key? key}) : super(key: key);

  Widget bodyData(){
    return SingleChildScrollView(
      child: Padding(
        padding: EdgeInsets.all(8.0),
        child: Column(
          children:<Widget>[
            Padding(
              padding: EdgeInsets.all(8.0),
              child: Center(
                child: Text(
                  "Pay your Bills",
                  style: TextStyle(fontWeight:FontWeight.w700,fontSize:20.0),
                ),
              ),
            ),

            SizedBox(
              height: 10.0,
            ),

            DashboardMenuRowTwo(
              firstIcon: FontAwesomeIcons.bolt,
              firstLabel: "ELECTRICITY",
              secondIcon: FontAwesomeIcons.tint,
              secondLabel: "WATER",
              thirdIcon: FontAwesomeIcons.mobile,
              thirdLabel: "MOBILE",
            ),

            DashboardMenuRowTwo(
              firstIcon: Icons.phone,
              firstLabel: "LANDLINE",
              secondIcon: FontAwesomeIcons.tv,
              secondLabel: "CABLE TV",
              thirdIcon: FontAwesomeIcons.chrome,
              thirdLabel: "INTERNET",
            ),

            SizedBox(
              height:10.0,
            ),

            Padding(
              padding: EdgeInsets.all(8.0),
              child:Center(
                child:Text(
                  "Purchase Ticket",
                  style: TextStyle(fontWeight: FontWeight.w700,fontSize:20.0),
                ),
              ),
            ),

            DashboardMenuRowTwo(
              firstIcon: FontAwesomeIcons.film,
              firstLabel: "MOVIE",
              secondIcon: FontAwesomeIcons.calendarAlt,
              secondLabel: "EVENT",
              thirdIcon: FontAwesomeIcons.footballBall,
              thirdLabel: "SPORT",
            ),
          ],
        ),
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Pay"),
      ),
      body: bodyData(),

    );
  }
}
